package org.keyintegrity.webbeans;

public interface BeanEditorDecorator {

    /**
     * 
     * @param bean A bean thats being edited
     * @param header <code>header.getHtml.toString()</code> initialized to bean's current field name
     */
    public void renderBeanFieldLabel(Object bean, final HTMLString label);

    /**
     * 
     * @param bean A bean thats being edited
     * @return Editor header or null if there is no need in header
     */
    public HTMLString renderHeader(Object bean);

}
